<!DOCTYPE html>
<html>
@include('admin.layout.header')
<body class="gray-bg">
<div class="container">

    <br/>
    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">简历搜索</h3>
        </div>
        <div class="panel-body">
            <form class="form-inline">
                <div class="form-group">
                    <label for="exampleInputName2">搜索关键字</label>
                    <input type="text" class="form-control" value="{{$keyword | ''}}" name="keyword"
                           id="exampleInputName2" placeholder="搜索关键字">
                </div>
                <button type="submit" class="btn btn-default">搜索</button>
                <span>试试关键词</span>
                <a class="btn btn-link label label-default" href="?keyword=管理" role="button">管理</a>
                <a class="btn btn-link label label-default" href="?keyword=智能设施" role="button">智能设施</a>
                <a class="btn btn-link label label-primary" href="?keyword=物联网" role="button">物联网</a>
                <a class="btn btn-link label label-info" href="?keyword=核能" role="button">核能</a>
                <a class="btn btn-link label label-warning" href="?keyword=新能源" role="button">新能源</a>
                <a class="btn btn-link label label-danger" href="?keyword=太阳能" role="button">太阳能</a>
            </form>

            <hr/>

            <table class="table table-bordered">
                <thead>
                <th width="80">姓名</th>
                <th>专业技能</th>
{{--                <th>经验</th>--}}
                </thead>
                <tbody>
                @foreach($list as $value)
                    <tr>
                        <td>{{$value['_source']['username']}}</td>
                        <td>{!! array_key_exists('highlight', $value)? $value['highlight']['skill_tag'][0]: $value['_source']['skill_tag']!!}</td>
{{--                        <td>{{$value['_source']['skill']}}</td>--}}
                    </tr>
                @endforeach

                </tbody>
            </table>

            <nav aria-label="Page navigation">
                <ul class="pagination">
                    <li>
                        <a href="#" aria-label="Previous">
                            <span aria-hidden="true">&laquo;</span>
                        </a>
                    </li>
                    <li><a href="#">1</a></li>
                    <li><a href="#">2</a></li>
                    <li><a href="#">3</a></li>
                    <li><a href="#">4</a></li>
                    <li><a href="#">5</a></li>
                    <li>
                        <a href="#" aria-label="Next">
                            <span aria-hidden="true">&raquo;</span>
                        </a>
                    </li>
                </ul>
            </nav>
        </div>
    </div>

</div>
@include('admin.layout.footer')
<style>
    fannao {
        border: 2px dashed blue;
        padding:2px;
    }
</style>
</body>
</html>
